'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/goods', controller.api.goods.index);
  router.get("/api/getToken",controller.api.token.index);
  router.get("/api/sort",controller.api.goods.sortPrice);
  router.get("/api/addCart",controller.api.cart.add);
  router.post("/api/login",controller.api.login.index);
  router.post("/api/logout",controller.api.login.out);
  router.get("/api/user",controller.api.user.index);
};
